import { Alova } from '@/utils/http/alova/index';

//获取table
export function getProduct(params: any) {
  return Alova.Post('/admin/product', params);
}

export function putProduct(params: any) {
  return Alova.Put('/admin/product', params);
}

export function patchProduct(params: any) {
  return Alova.Patch('/admin/product', params);
}

export function getProductInfo(id: number) {
  return Alova.Get('/admin/product/' + id);
}

export function deleteProduct(id: number) {
  return Alova.Delete('/admin/product/' + id);
}
